package com.rick.new310;

/**
 * @author xjli2
 * @Classname Te
 * @Description TODO
 * @Date 2022/3/10 9:34
 */
public class Te {

    AutoExceptionItem SUCCESS = new AutoExceptionItem(0, "操作成功");
    AutoExceptionItem UNPLEMENTED_FEATURE = new AutoExceptionItem(901, "功能建设中");
    AutoExceptionItem COUNTRY_ERROR = new AutoExceptionItem(999, "该国家或地区未参加奥运会");
    AutoExceptionItem SYS_ERROR = new AutoExceptionItem(1001, "系统发生未知错误（系统运行错误）");
    AutoExceptionItem SYS_STRING_EMPTY = new AutoExceptionItem(1002, "参数为空(字符串)");
    AutoExceptionItem SMS_CODES_ERROR = new AutoExceptionItem(1003, "验证码错误");
    AutoExceptionItem SYS_CLASS_EMPTY = new AutoExceptionItem(1003, "实体类为空");
    AutoExceptionItem DATA_EMPTY = new AutoExceptionItem(1004, "请求数据为空");
    AutoExceptionItem PARAM_ERROR = new AutoExceptionItem(1017, "参数错误或缺少必要参数");
    AutoExceptionItem DATA_FORMAT_ERROR = new AutoExceptionItem(1007, "提交数据格式错误");
    AutoExceptionItem DID_MISS = new AutoExceptionItem(1018, "dId 为空");
    AutoExceptionItem DID_INVALID = new AutoExceptionItem(1021, "dId 无效");
    AutoExceptionItem DATA_DUPLICATE = new AutoExceptionItem(1022, "添加的数据中有重复");
    AutoExceptionItem DATA_EXIST = new AutoExceptionItem(1023, "数据库中已存在该记录");
    AutoExceptionItem MD5CODE_NOT_EQUAL = new AutoExceptionItem(1501, "md5码不一致");
    AutoExceptionItem VERSION_NOT_EXIST = new AutoExceptionItem(1502, "版本不存在");
    AutoExceptionItem USERSET_NOT_EXIST = new AutoExceptionItem(1503, "用户群不存在");
    AutoExceptionItem USER_NOT_EXIST = new AutoExceptionItem(1504, "用户群用户不存在");
    AutoExceptionItem DID_LIST_EMPTY = new AutoExceptionItem(1506, "设备列表为空");
    AutoExceptionItem DID_NOT_CHOICE = new AutoExceptionItem(1507, "没有选择设备");
    AutoExceptionItem NO_DID_ABLE_PUSH = new AutoExceptionItem(1508, "没有车机可以推送");
    AutoExceptionItem DID_UNAVAILABLE = new AutoExceptionItem(1509, "设备不可用或不存在的设备");
    AutoExceptionItem PUSH_TYPE_EMPTY = new AutoExceptionItem(1510, "推送类型为空");
    AutoExceptionItem VERSION_STATE_NOT_EXIST = new AutoExceptionItem(1511, "没有版本状态信息");
    AutoExceptionItem PHONENO_INVALIDAATE = new AutoExceptionItem(1512, "存在无效手机号");
    AutoExceptionItem EXTERNAL_EXCEPTION = new AutoExceptionItem(903, "外部未知异常");
    AutoExceptionItem TOKEN_AUTHENTICATION_FAILED= new AutoExceptionItem(1550, "token认证失败");

    @Override
    public String toString() {
        return "[{" +
                "SUCCESS:" + SUCCESS +
                ", UNPLEMENTED_FEATURE:" + UNPLEMENTED_FEATURE +
                ", COUNTRY_ERROR:" + COUNTRY_ERROR +
                ", SYS_ERROR:" + SYS_ERROR +
                ", SYS_STRING_EMPTY:" + SYS_STRING_EMPTY +
                ", SMS_CODES_ERROR:" + SMS_CODES_ERROR +
                ", SYS_CLASS_EMPTY:" + SYS_CLASS_EMPTY +
                ", DATA_EMPTY:" + DATA_EMPTY +
                ", PARAM_ERROR:" + PARAM_ERROR +
                ", DATA_FORMAT_ERROR:" + DATA_FORMAT_ERROR +
                ", DID_MISS:" + DID_MISS +
                ", DID_INVALID:" + DID_INVALID +
                ", DATA_DUPLICATE:" + DATA_DUPLICATE +
                ", DATA_EXIST:" + DATA_EXIST +
                ", MD5CODE_NOT_EQUAL:" + MD5CODE_NOT_EQUAL +
                ", VERSION_NOT_EXIST:" + VERSION_NOT_EXIST +
                ", USERSET_NOT_EXIST:" + USERSET_NOT_EXIST +
                ", USER_NOT_EXIST:" + USER_NOT_EXIST +
                ", DID_LIST_EMPTY:" + DID_LIST_EMPTY +
                ", DID_NOT_CHOICE:" + DID_NOT_CHOICE +
                ", NO_DID_ABLE_PUSH:" + NO_DID_ABLE_PUSH +
                ", DID_UNAVAILABLE:" + DID_UNAVAILABLE +
                ", PUSH_TYPE_EMPTY:" + PUSH_TYPE_EMPTY +
                ", VERSION_STATE_NOT_EXIST:" + VERSION_STATE_NOT_EXIST +
                ", PHONENO_INVALIDAATE:" + PHONENO_INVALIDAATE +
                ", EXTERNAL_EXCEPTION:" + EXTERNAL_EXCEPTION +
                ", TOKEN_AUTHENTICATION_FAILED:" + TOKEN_AUTHENTICATION_FAILED +
                "}]";
    }

    public static void main(String[] args) {
        System.out.println( new Te());
    }
}
